package main

import "fmt"

type Boy struct {
	name  string
	hobby string
}

func newBoy(name string, hobby string) *Boy {
	return &Boy{
		name:  name,
		hobby: hobby,
	}
}

func (b Boy) love(s string) {
	fmt.Printf("%s love %s", b.name, s)
}

func main() {
	my := newBoy("baim0", "eat")
	my.love("xiaokui")
}
